<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link href="$!webPath/resources/style/system/manage/$!{config.websiteCss}/template.css"  rel="stylesheet" type="text/css"/>
<script src="$!webPath/resources/js/jquery-1.8.3.min.js"></script>
<script src="$!webPath/resources/js/jquery.validate.min.js"></script>
<script src="$!webPath/resources/js/jquery.shop.common.js"></script>
<script src="$!webPath/resources/js/jquery.poshytip.min.js"></script>
<script>
function ajax_update(id,fieldName,obj){
   var val=jQuery(obj).val();
    jQuery.ajax({type:'POST',
	              url:'$!webPath/admin/template_ajax.htm',
				  data:{"id":id,"fieldName":fieldName,"value":val},
				beforeSend:function(){
				  
				},
			   success:function(data){
	             if(val==""){
				   jQuery(obj).attr("src","$!webPath/resources/style/system/manage/blue/images/"+data+".png");
				 }else{
				   jQuery(obj).val(val);
				 }      
              }
	    });
}
</script>
</head>
<body>
<div class="cont">
  <h1 class="seth1">通知模板</h1>
  <div class="settab"><span class="tab-one"></span> <span class="tabs"> <a href="$!webPath/admin/template_list.htm?type=msg" #if($!type=="msg") class="this"#end>站内信模板</a> |<a href="$!webPath/admin/template_list.htm?type=email"  #if($!type=="email") class="this"#end>邮件模板</a>|<a href="$!webPath/admin/template_list.htm?type=sms"  #if($!type=="sms") class="this"#end>手机短信模板</a> |<a href="$!webPath/admin/template_add.htm">新增</a> </span> <span class="tab-two"></span></div>
  <form name="ListForm" id="ListForm"  action="$!webPath/admin/template_list.htm" method="post">
  <div class="leveltable">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="level_table">
      <tr style="background: #if($!config.websiteCss=='blue') #2A7AD2 #end 
      #if($!config.websiteCss=='black')#333 #end; height:30px; color:#FFF">
        <td width="48" >&nbsp;</td>
        <td width="554" >模板说明</td>
        <td  width="297">模板标识</td>
        <td  width="87">是否开启</td>
        <td width="104">操作</td>
      </tr>
	  #foreach($obj in $objs)
      <tr>
        <td align="center"><input name="ids" id="ids" type="checkbox" value="$!obj.id" /></td>
        <td >$!obj.info</td>
        <td>$!obj.mark</td>
        <td><img  src="$!webPath/resources/style/system/manage/blue/images/$!{obj.open}.png" width="21" height="23" onclick="ajax_update('$!obj.id','open',this)" style="cursor:pointer;" title="可编辑"/></td>
        <td class="ac9"><a href="$!webPath/admin/template_edit.htm?id=$!obj.id&currentPage=$!currentPage">编辑 </a><a href="$!webPath/admin/template_copy.htm?id=$!obj.id&currentPage=$!currentPage">复制</a></td>
      </tr>
      #end
	  <tr style="background:#F2F2F2; height:30px;">
		<td align="center"><input type="checkbox" name="all" id="all" value="" onclick="selectAll(this)"/></td>
        <td colspan="2" align="center" class="sall"><span class="classall">全部</span><span class="shop_btn_del" id="alldel">
            <input name="input" type="button" value="开启" style="cursor:pointer;" onclick="cmd('$!webPath/admin/template_open.htm')"/>
          </span></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table>
  </div>
  <div class="fenye"><input type="hidden" name="currentPage" id="currentPage" value="$!currentPage" />
	  <input name="mulitId" type="hidden" id="mulitId" />
	  <input name="type" type="hidden" id="type" value="$!type" />
	  $!gotoPageFormHTML</div>
 </form>
</div>
</body>
</html>
